﻿package Interface.MessagesClasses
{	
	import Interface.TracksClasses.TrackButton;

	import flash.display.Sprite;
	import flash.text.TextField;	

	public class InfoMessage extends Sprite
	{
		protected var FText:TextField;
		protected var FOKButton:TrackButton;
		protected var FHeader:TextField;
		
		public function InfoMessage():void
		{
			FText = getChildByName('InfoText') as TextField;			
			FHeader = getChildByName('HeaderText') as TextField;
			FOKButton = getChildByName('OK') as TrackButton;
		}
		
		public function set Text(AText:String):void
		{			
			FText.text = AText;
		}
		
		public function set Header(AText:String):void
		{
			FHeader.text = AText;
		}
		
		public function get OKButton():TrackButton
		{
			return FOKButton;
		} 
	}	
}
